package collect.taobao.action;
import collect.taobao.util.SuperAction;
import org.apache.log4j.Logger;

public class TestLogAction extends SuperAction {

	public TestLogAction() {
		super();
	}

	private static Logger logger = Logger.getLogger(TestLogAction.class
			.getName());

	public  void testLog() {
		try {
			logger.debug("This is debug message.");
			// 记录info级别的信息
			logger.info("This is info message.");
			// 记录error级别的信息
			logger.error("This is error message.");

			// 业务...
		} catch (Exception e) {
			logger.info("log出错啦：" + e.getMessage());
		}
	}

}
